package com.fenghao.subject.domain.convert;

import com.fenghao.subject.domain.entity.SubjectInfoBO;
import com.fenghao.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * SubjectInfoBO ——> SubjectInfo (Bean转换)
 * List<SubjectInfo>  ——>  List<SubjectInfoBO>  (BeanList转换)
 */
@Mapper
public interface SubjectInfoConvert {

    SubjectInfoConvert INSTANCE = Mappers.getMapper(SubjectInfoConvert.class);

    SubjectInfo convertBoToInfo(SubjectInfoBO subjectInfoBO);

    List<SubjectInfoBO> convertBoListToDtoList(List<SubjectInfo> subjectInfoList);
}
